<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
parameterA:<input type="text" id="card" value="" /><br /><br />
<!--　　parameterB:<input type="text" id="parameter_B" value="" />-->
　　<input type="button" value="submit" id="submitAB">
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
<script>
    $(function () {
        $("#submitAB").click(function () {
            $.ajax({
                url: "http://localhost:9998/saveLamp",
                type: "POST",
                datatype:"JSON",
                data: {
                    //主键必需，其他按需添加
                    card:$("#card").val(),
                    // parameter_B:$("#parameter_B").val()
                    },
                success: function (data) {
                    console.log(data);
                },
                error: function () {
                    alert("提交失败！");
                }
            });
        });
    });
</script>
</body>
</html>